---
sidebar_label: Google PaLM
---

import CodeBlock from "@theme/CodeBlock";

# ChatGooglePaLM

:::note
This integration does not support `gemini-*` models. Check [Google AI](/docs/integrations/chat/google_generativeai).
:::

The [Google PaLM API](https://developers.generativeai.google/products/palm) can be integrated by first
installing the required packages:

import IntegrationInstallTooltip from "@mdx_components/integration_install_tooltip.mdx";

<IntegrationInstallTooltip></IntegrationInstallTooltip>

```bash npm2yarn
npm install google-auth-library @google-ai/generativelanguage @langchain/community
```

Create an **API key** from [Google MakerSuite](https://makersuite.google.com/app/apikey). You can then set
the key as `GOOGLE_PALM_API_KEY` environment variable or pass it as `apiKey` parameter while instantiating
the model.

import GooglePaLMExample from "@examples/models/chat/integration_googlepalm.ts";

<CodeBlock language="typescript">{GooglePaLMExample}</CodeBlock>
